package gui;

import javax.swing.JPanel;

import java.awt.Color;

import javax.swing.JLabel;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JTextPane;
import javax.swing.JToggleButton;
import javax.swing.JEditorPane;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.UIManager;

public class Deposit extends JPanel {

	private JButton btnContinue;
	private JButton btnBack;
	private JEditorPane currentBalance;
	private JTextField depositAmount;

	/**
	 * Create the panel.
	 */
	public Deposit() {
		setBackground(UIManager.getColor("Button.background"));
		setLayout(null);

		JLabel lblCurrentBalance = new JLabel("Current balance: ");
		lblCurrentBalance.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblCurrentBalance.setBounds(61, 87, 113, 16);
		add(lblCurrentBalance);

		JLabel lblDepositAmount = new JLabel("Deposit Amount: ");
		lblDepositAmount.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblDepositAmount.setBounds(61, 149, 113, 16);
		add(lblDepositAmount);

		currentBalance = new JEditorPane();
		currentBalance.setBounds(184, 87, 106, 20);
		add(currentBalance);

		JLabel lblDeposit = new JLabel("Deposit");
		lblDeposit.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblDeposit.setBounds(199, 29, 54, 17);
		add(lblDeposit);

		btnBack = new JButton("Back");
		btnBack.setBounds(61, 227, 89, 23);
		add(btnBack);

		btnContinue = new JButton("Continue");
		btnContinue.setBounds(324, 227, 89, 23);
		add(btnContinue);

		depositAmount = new JTextField();
		depositAmount.setBounds(184, 148, 106, 20);
		add(depositAmount);
		depositAmount.setColumns(10);

	}

	public void addActionListener(ActionListener l) {
		btnContinue.addActionListener(l);
		btnBack.addActionListener(l);

	}

	public JButton getBtnContinue() {
		return btnContinue;
	}

	public JButton getBtnBack() {
		return btnBack;
	}

	public JEditorPane getCurrentBalance() {
		return currentBalance;
	}

	public JTextField getDepositAmount() {
		return depositAmount;
	}
}
